import store from '@/store';

const btnPermissionUtil = {
  getBtnbtnPermission: (btnName) => {
    let btnPermissionList = store.state.btnPermission.btnPermissionList || []
    let a = []
    if (Array.isArray(btnPermissionList)) {
      a = btnPermissionList.filter(it => {
        return it.Ename === btnName
      })
    }
    return a.length > 0
  }
}
export default btnPermissionUtil
